<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<button class="button" @click="cc">Go</button>

		<view class="click" :class="{
		      'scale-1': scaleState === 1,
		      'scale-2': scaleState === 2
		    }" @click="handleClick">
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'HELLO',
				 scaleState: 0
			}
		},
		onLoad() {

		},
		methods: {
			cc() {
				uni.switchTab({
					url: "/pages/Custom/myPage/myPage"
				})
			},
			 handleClick() {
			      this.scaleState = (this.scaleState + 1) % 3;
			    }

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 30rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}

	.button {
		width: 120rpx;
		height: 60rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 30rpx;
	}

	.button:active {
		background-color: blue;
	}

	.click {
		width: 30px;
		height: 30px;
		background-color: blue;
		cursor: pointer;
		transition: transform 0.3s ease;
		margin-top: 50rpx;
	}

	.scale-1 {
		transform: scale(1.5);
		background-color: red;
		
	}

	.scale-2 {
		transform: scale(2);
		background-color: green;
	}
</style>